<!DOCTYPE html>
<html>
<title>CSS Transforms Test: transform property on hover state</title>
    <link rel="author" title="Jun Qian" href="mailto:tonychyan9@gmail.com">
    <link rel="help" href="http://www.w3.org/TR/css3-transforms/#transform-property">
    <link rel="help" href="http://dev.w3.org/csswg/css3-transforms/#transform-origin">
    <meta name="assert" content="Test checks that whether transform property work on hover state.">
    <meta name="flag" content="interaction">
     <style type="text/css">
        .container {
            position: absolute;
        }
        .greenRectangle {
            position: absolute; 
            top: 0;
            left: 0;
            width: 100px;
            height: 200px;
            background-color: green;
         }
        .greenRectangle:hover {
            transform:translate(100px,0);
			transform-origin: 100% bottom;
			transform:rotate(90deg);			
		}
         						        
         /* This div should only be visible if the test fails */
        .redSquare {
            position: absolute;
            /* It is approximately the same size as the test div, but with a 1px margin */
            width: 98px;
            height: 98px;
            background-color: red;
            left: 200px;
            top :100px;
        }
    </style>
</head>
<body>
    <p>The test passes if you hover over the green rectangle and it completely covers the red square.</p>
    <div class="container">
        <!-- This is the square that should not be visible if the test passes -->
        <div class="redSquare"></div>
        <!-- This is the rectangle being tested with the transform -->
        <div class="greenRectangle"></div>
    </div>
</body>
</html>